package com.atguigu.gmall.product.mapper;

import com.atguigu.gmall.model.product.SpuSaleAttr;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * spu销售属性 Mapper 接口
 * </p>
 *
 * @author 廖传港
 * @since 2020-12-21
 */
public interface SpuSaleAttrMapper extends BaseMapper<SpuSaleAttr> {

    //根据商品ID查询 销售属性及属性值集合
    List<SpuSaleAttr> spuSaleAttrList(Long spuId);

    List<SpuSaleAttr> getSpuSaleAttrAndChecked(Long spuId, Long skuId);
}
